<template>
    <div class="main dispaly-just-between">
        <div class="left dispaly">
            <div class="logo">
                <img src="/src//assets//image/x.png">
            </div>
            <div class="name dispaly-center">
                <div class="name-text">{{ name }}</div>
                <div class="props">{{ desc }}</div>
            </div>
        </div>
        <div class="right dispaly-center pointer" @click="clickMore">
            <div class="more">更多</div>
            <img src="/src/assets/image/plus.png">
        </div>
    </div>
</template>

<script setup>
import { getCurrentInstance } from 'vue'

const app = getCurrentInstance()
const name = app.appContext.config.globalProperties.$name
const props = defineProps({
    desc: {
        type: String,
        default: '成就'
    }
})

// 点击更多
const emit = defineEmits(['clickMore'])
const clickMore = () => emit('clickMore')
</script>

<style lang="scss" scoped>
.main {
    padding: 11px 20px;
    background: $web-bg;
    border-radius: 10px;

    .right {
        .more:hover {
            color: $primary-color;
        }

        .more {
            font-family: MicrosoftYaHei;
            font-size: 14px;
            color: #666666;
            margin-right: 5px;
        }

        img {
            width: 17px;
            height: 17px;
        }
    }

    .left {
        .logo {
            img {
                width: 30px;
                height: 21px;
            }
        }

        .name {

            .name-text,
            .props {
                font-family: MicrosoftYaHei;
                font-size: 22px;
            }

            .name-text {
                color: $primary-color;
            }

            .props {
                color: #333333;
            }
        }
    }
}
</style>